#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
#define MAXSIZE 100
int Upset[MAXSIZE];
void set_init(int Upset[]){
    memset(Upset,-1,sizeof(Upset));
}
int find(int Upset[],int x){
    while (Upset[x]>=0)
        x = Upset[x];
    return x;
}

void union_set(int Upset[],int root1,int root2){
    Upset[root2] = root1;
    return;
}
int main(){
    set_init(Upset);
    return 0;
}